<template>
  <div class="box">
    <div class="po-tit">
      <div class="po-icon" @click="go">
        <van-icon name="arrow-left" size="20px" color="#AEAFB2" />
      </div>
      <p class="po-t-p">{{arr.title}}</p>
      <div></div>
    </div>
    <div class="p-money">
      <div class="money-pone">
        <p class="pnum">2</p>
        <p>暂无</p>
        <p class="pyear">2660</p>
      </div>
      <div class="money-ptwo">
        <p>今日票房排行</p>
        <p>首周票房（万）</p>
        <p>今日票房排行</p>
      </div>
    </div>
    <div class="po-lin-one"></div>
    <div class="po-office">
      <p class="po-f-pone">总票房</p>
      <div class="po-f-boxone">
        <p class="po-f-boxone-p">地区</p>
        <p class="po-f-boxone-p">每周末票房</p>
        <p class="po-f-boxone-p">总票房</p>
      </div>
      <div class="po-f-boxone">
        <p class="po-f-boxone-ptwo">中国</p>
        <p class="po-f-boxone-ptwo">暂无数据</p>
        <p class="po-f-boxone-ptwo">501万元</p>
      </div>
    </div>
    <div class="po-lin-two"></div>
    <div class="po-day">
      <p class="po-day-pone">日票房明细</p>
      <p class="po-day-ptwo">单位：万元</p>
    </div>
    <div class="po-foot-lis">
      <ul class="po-foot-ul">
        <li class="po-foot-li">
          <div class="po-li-pone">日期</div>
          <div class="po-li-box">
            <span class="po-li-pone">当日票房</span>
            <span class="po-li-pone">票房占比</span>
            <span class="po-li-pone">拍片占比</span>
            <span class="po-li-pone">场次人次</span>
          </div>
        </li>
        <li class="po-foot-li">
          <div class="po-li-pone2">
            2018-05-18
            <br />
            <span class="po-li-sp">周六上映首日</span>
          </div>
          <div class="po-li-box2">
            <span class="po-li-pone3">538.6</span>
            <span class="po-li-pone3">8.3%</span>
            <span class="po-li-pone3">21.3%</span>
            <span class="po-li-pone3">3</span>
          </div>
        </li>
        <li class="po-foot-li">
          <div class="po-li-pone oce">
            2018-05-17
            <br />
            <span class="po-li-sp1">周五零点场</span>
          </div>
          <div class="po-li-box2">
            <span class="po-li-pone3">- -</span>
            <span class="po-li-pone3">- -</span>
            <span class="po-li-pone3">0.0%</span>
            <span class="po-li-pone3">0</span>
          </div>
        </li>
      </ul>
    </div>
    <div class="end-line"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: []
    };
  },
  computed: {},
  created() {
    this.$axios
      .get("/api/douban/movie/subject", {
        params: {
          mId: this.$route.params.id
        }
      })
      .then(res => {
        this.arr = res.data;
        console.log(this.arr);
      });
  },
  mounted() {},
  methods: {
    go() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped lang="scss">
.box {
  background-color: #22262d;
  overflow: hidden;
  height: 100vh;
  .po-tit {
    width: 335px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .po-t-p {
      font-size: 16px;
      color: rgba(255, 255, 255, 1);
      line-height: 16px;
    }
  }
}
.p-money {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 13px;
  .money-pone {
    width: 335px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
    line-height: 18px;
    .pnum {
      margin-left: 37px;
      color: rgba(251, 195, 74, 1);
    }
    .pyear {
      margin-right: 14px;
      color: rgba(251, 195, 74, 1);
    }
  }
  .money-ptwo {
    width: 335px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #474b51;
    line-height: 12px;
    margin-top: 6px;
  }
}
.po-lin-one {
  width: 100%;
  height: 6px;
  background: #33363d;
  margin-bottom: 19px;
}
.po-office {
  width: 335px;
  margin: 0 auto;
  .po-f-pone {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    line-height: 18px;
    text-align: left;
    margin-bottom: 28px;
  }
  .po-f-boxone {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    .po-f-boxone-p {
      font-size: 14px;
      color: #474b51;
      line-height: 14px;
      margin-bottom: 20px;
    }
    .po-f-boxone-ptwo {
      font-size: 14px;
      color: rgba(255, 255, 255, 1);
      line-height: 14px;
      margin-bottom: 18px;
    }
  }
}
.po-lin-two {
  width: 100%;
  height: 6px;
  background: #33363d;
  margin-bottom: 20px;
}
.po-day {
  width: 335px;
  height: 18px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  .po-day-pone {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    line-height: 18px;
  }
  .po-day-ptwo {
    font-size: 12px;
    color: #474b51;
    line-height: 12px;
  }
}
.po-foot-lis {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 350px;
  .po-foot-ul {
    .po-foot-li {
      display: flex;
      margin-bottom: 20px;
      justify-content: space-between;
      align-items: center;
      .po-li-box {
        width: 237px;
        display: flex;
        justify-content: space-between;
      }
      .po-li-pone {
        font-size: 14px;
        color: #595c61;
        line-height: 14px;
      }
      .po-li-pone2 {
        font-size: 12px;
        color: rgba(192, 18, 18, 1);
        line-height: 18px;
      }
      .po-li-sp {
        font-size: 12px;
        color: rgba(251, 195, 74, 1);
        line-height: 18px;
      }
      .po-li-box2 {
        width: 237px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
      }
      .po-li-pone3 {
        width: 32px;
        height: 12px;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #595c61;
        line-height: 12px;
      }
      .body .oce {
        color: #595c61;
      }
      .po-li-sp1 {
        font-size: 12px;
        color: #595c61;
        line-height: 18px;
      }
    }
  }
}
.end-line {
  width: 134px;
  height: 5px;
  background: #64676c;
  border-radius: 100px;
  margin: 0 auto;
}
</style>
